import { createStore, combineReducers } from 'redux';
import socketReducer, { socketioState } from './socket';

const rootReducers = combineReducers({ socketReducer });

const store = createStore(
    rootReducers,
    { socketReducer: socketioState },
    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);

export default store;
